const mongoose = require('mongoose')
const db = require('../model/db')

// 创建规则
const adminUserSchema = new mongoose.Schema({
    nick_name: { type: String, required: true },
    password: { type: String, required: true },
    avatar: { type: String, required: true },
    date: { type: Date, required: true, default: Date.now },
})

// 定义模型
const adminLists = db.model('admin_users', adminUserSchema)
module.exports = {
    adminLists
}